import VueRouter from "vue-router";
import Home from "./components/tabbar/Home.vue";
import Search from "./components/tabbar/Search.vue";
import ShopCar from "./components/tabbar/ShopCar.vue";
import Svip from "./components/tabbar/Svip.vue";
import NewsList from "./components/news/NewsList.vue";
import NewsInfo from "./components/news/NewsInfo.vue";
import photoList from "./components/photos/photoList.vue";
import photoInfo from "./components/photos/photoInfo.vue"
import GoodList from "./components/goods/GoodList.vue";
import GoodInfo from "./components/goods/GoodInfo.vue";
import GoodsDesc from "./components/goods/GoodsDesc.vue";
import GoodsPinlun from "./components/goods/GoodsPinlun.vue";
var router = new VueRouter({
    routes:[
        {path:"/",redirect:"/home"},
        {path:"/home",component:Home},
        {path:"/search",component:Search},
        {path:"/shopcar",component:ShopCar},
        {path:"/svip",component:Svip},
        {path:"/home/news",component:NewsList},
        {path:'/home/newsinfo/:id',component:NewsInfo},
        {path:"/home/photolist",component:photoList},
        {path:"/home/photoinfo/:id",component:photoInfo},
        {path:"/home/goodlist",component:GoodList},
        {path:"/home/goodinfo/:id",component:GoodInfo},
        {path:"/home/goodsdesc/:id",component:GoodsDesc,name:"goodsDesc"},
        {path:"/home/goodspinlun/:id",component:GoodsPinlun,name:"goodsPinlun"}
    ],
    linkActiveClass:"mui-active"
})
export default router;
